//Learned:
//1.和functional相关的bind方法（注意不是套接字的bind）

#include"tcpserver.hpp"

// ./calserver port
int main(int argc, char* argv[])
{
    if(argc < 2)
    {
        exit(-1);
    }

    uint16_t port = stoi(argv[1]);
    TcpServer* serv = new TcpServer(port);
    serv->InitServer();
    serv->Start();
    return 0;
}